package com.tencent.hummingbird.portal.service.impl;

import com.tencent.hummingbird.portal.pojo.Classroom;
import com.tencent.hummingbird.portal.mapper.ClassroomMapper;
import com.tencent.hummingbird.portal.service.IClassroomService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.experimental.Accessors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yxb
 * @since 2024-01-10
 */
@Service
public class ClassroomServiceImpl extends ServiceImpl<ClassroomMapper, Classroom> implements IClassroomService {

    @Autowired
    private ClassroomMapper classroomMapper;
    @Override
    public List<Classroom> getAllClass() {
       List<Classroom> classrooms =  classroomMapper.selectClassroom();
       return classrooms;
    }
}
